Data Storage(I)-計算機概論筆記
一定愛配于天立教授開放課程食用:課程連結
Data Storage(I)
Binary world
- Simple, logical and unambiguous
- Boolen operation and gates
- AND:
- OR:
- Exclusive OR(XOR):
- NOT:
Flip-Flop(正反器)
- Purpose -> To store 0/1
- 2 inputs
- One -> set 0
- The other -> set 1
- It will preserve 0/1 if there is no inputs
-
Simple SR Flip-Flop Circuit
Another Simple SR Flip-Flop Circuit
Hexadecimal(Hex,十六進位)
- Reason of using Hex
- Binary is too long for human to remember
- Binary to Hex is straightforward
Main memory cell
- 8 bits -> 1 cell -> 1 byte
Memory
- One dimensional
- Random accessible
- Access the content via the address
Memory techniques
- Random access memory (Ram): Memory in which individual cells can be
easily randomly accessed.
- Type: Static Memory(SRAM), Dynamic Memory(DRAM), Synchronous DRAM(SDRAM)
- Double Date Rate(DDR)->Faster when reading data
- Dual/Triple channel
- Kilobyte:
= 1024 bytes bytes - Megabyte:
= 1038576 bytes bytes - Gigabyte:
= 1073741824 bytes bytes - Gigabyte:
= 1073741824 bytes bytes
- Kilobyte:
Mass Storage
- Properties:
- Larger capacity
- Less volatility
- Slower
- On-line or off-line
- Types:
- Magnetic systems(HDD,Floppy Disk)
- Optical systems(CD,DVD)
- Flash drives(SSD)
- Magnetic storage:
- Access time = seek time(To reach the right track) + rotation delay(latency time,To reahc the right sector)
- Transfer rate(SATA)
- Optical storage
- Physical and logical records
- Buffer(緩衝區)
- Purpose: To synchronize different read/write mechanisms and rates
- An area used to temporarily store data
Representing text
- ASCII: 7 bits (or 8 bits starts with 0)
- Unicode: 16 bits
- ISO: 32 bits
Representing numbers
901 (decimal):
11 (binary):
From binary to decimal
From decimal to binary
Representing img
- Bit map techniques:
- Pixel: the element of a picture
- Colors: RGB,HSV,etc.
- Vector techniques:
- Properties: Scalable
- Truetype,Postscript,SVG(scalable vector graphic)
Representing sound
- Sampling
- Sample rate and bit resolution
- Bit rate(sampling rate
bit resolution)
- MIDI(synthesis)
- A protocol designed for recording and playing back music on digital synthesizers that is supported by many makes of personal computer sound cards
Binary system revisited
- Addition
- 0+0=0
- 1+0=1,0+1=1
- 1+1=10
- Subtraction
- Define negative numbers first(Two's Complement Notation)
Two's complement notation and encoding
- Encoding(method 1): After finishing the process,you can directly do the addition and get the right answer
- Encoding(method 2): Do it as usual binary way
- Encoding(method 3):
Excess notation
- Addition: After the calculation, u have to add 4 to get the right answer ## Overflow Using the table from Two's complement:
- Occurs when the result is out of range(not in table)
- Addition of two positive numbers -> 2+3=5
-3(mod 8) - Addition of two negative numbers -> (-2)+(-3)=-5
-3(mod 8)
- Title: Data Storage(I)-計算機概論筆記
- Author: Shih Jiun Lin
- Created at : 2023-09-22 16:29:15
- Updated at : 2023-01-24 01:29:29
- Link: https://shih-jiun-lin.github.io/2023/09/22/2023-01-17-Data Storage(I)/
- License: This work is licensed under CC BY-NC-SA 4.0.